cmake_minimum_required(VERSION 3.16)

project(calc2 LANGUAGES CXX)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

add_executable(calc2 main.cpp


    ../../../elinux/c++/0-calc-makefile/calc.cpp)

include(GNUInstallDirs)
install(TARGETS calc2
    LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
    RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
)
